package com.yitiao.designmodel.struct.decorator;

public class LiveFaceDecorator implements LiveDecorator{
    private final Live live;

    public LiveFaceDecorator(Live live) {
        this.live = live;
    }

    public void enable(){
        System.out.println("开启美颜");
    }

    // 实现被装饰类的原有功能，并增强
    @Override
    public void startLive() {
        live.startLive();
        enable();
    }
}
